<?php

namespace HelloWeb\LottoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Library\BaseEntity;

/**
 * LottoNumber
 *
 * @ORM\Table(name="hw_lotto_number")
 * @ORM\Entity(repositoryClass="HelloWeb\LottoBundle\Entity\Repository\LottoNumberRepository")
 */
class LottoNumber extends BaseEntity
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    
    /**
     * @ORM\ManyToOne(targetEntity="Lotto", inversedBy="numbers")
     * @ORM\JoinColumn(name="lotto_id", referencedColumnName="id", nullable=false)
     */
    private $lotto;

    /**
     * var integer
     * 
     * @ORM\Column(name="draw_no", type="integer", nullable=false)
     */
    private $number;

    /**
     * @var Boolean
     * 
     * @ORM\Column(name="is_special_number", type="boolean")
     */
    private $isSpecialNumber;

    public function getId()
    {
        return $this->id;
    }

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function getLotto()
    {
        return $this->lotto;
    }

    public function setLotto($lotto)
    {
        $this->lotto = $lotto;
        return $this;
    }

    public function getNumber()
    {
        return $this->number;
    }

    public function setNumber($number)
    {
        $this->number = $number;
        return $this;
    }

    public function getIsSpecialNumber()
    {
        return $this->isSpecialNumber;
    }

    public function setIsSpecialNumber($isSpecialNumber)
    {
        $this->isSpecialNumber = $isSpecialNumber;
        return $this;
    }
 

    


   
}
